<template>

    <div class="w">
        <div class="personal-message">
            <div class="swiper-container swiper-container2">
                <div class="swiper-wrapper">
                    <div class="swiper-slide" v-for="(item,index) in notice">
                        {{item}}
                    </div>
                    
                </div>
            </div>
        </div>
    </div>
    
</template>

<script>
// @ is an alias to /src
import Swiper from 'swiper';

export default {
  // inject:['reload'],
  data(){
    return{
        notice:[]
          
     }
  },
 created(){
       let notice = window.localStorage.getItem('notice');
        if(notice){
           this.notice = JSON.parse(notice);
        }
  },

  mounted(){
    let that = this;
  　　that.$nextTick(function(){
  　　　　  new Swiper('.swiper-container2', {
                pagination: '.pagination',
                speed: 1000,
                loop: true,
                autoplay: {
                    delay: 3000,
                    stopOnLastSlide: false,
                    disableOnInteraction: false,
                },
                direction: 'vertical',
           })
          
  　　})
     
            
  },
  components: {
     
  },
  methods:{
    
   
  }
}
</script>

